from django.conf.urls.defaults import *
import os

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^jcodemanage/', include('jcodemanage.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
    (r'^$', 'index.views.index'),
    (r'^component/$', 'index.views.component'),
    (r'^css/(?P<path>.*)$', 'django.views.static.serve',{'document_root': os.path.join(os.path.abspath(os.curdir), 'templates/css')}),
    (r'^images/(?P<path>.*)$', 'django.views.static.serve',{'document_root': os.path.join(os.path.abspath(os.curdir), 'templates/images')}),
    (r'^js/(?P<path>.*)$', 'django.views.static.serve',{'document_root': os.path.join(os.path.abspath(os.curdir), 'templates/js')}),
    (r'^(robots.txt)$', 'django.views.static.serve',{'document_root': os.path.abspath(os.curdir)}),
    (r'^index/', include('index.urls')),
    (r'^component/', include('component.urls')),
)

